using System;

namespace AdvancedInspector
{
	[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
	public class RangeValueAttribute : Attribute, IListAttribute
	{
		private float min;

		private float max;

		public float Min
		{
			get
			{
				return min;
			}
			set
			{
				min = value;
			}
		}

		public float Max
		{
			get
			{
				return max;
			}
			set
			{
				max = value;
			}
		}

		public RangeValueAttribute(float min, float max)
		{
			this.min = min;
			this.max = max;
		}
	}
}
